/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.moraa.server.dao;

import com.hiof.moraa.server.service.model.Feed;
import com.hiof.moraa.server.service.model.LiveLocationFeed;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.List;

/**
 *
 * @author Bergy
 */
public interface AthleteLiveLocationDAO {

    public LiveLocationFeed insertAthleteLiveLocationFeed(int athleteId, double lat, double lng, double height, double speed, Timestamp timestamp);

    public List<LiveLocationFeed> getLatestLiveLocationFeedOfAllAthlete(int routeId);

    public List<LiveLocationFeed> getLatestLiveLocationFeedOfAthleteInOneRoute(int routeId, int numOfFeed);

    public Collection<? extends Feed> getLatestLiveLocationFeedOfOneUserInOneRoute(String username, int routeId, int numOfLiveLocationFeed);

    public LiveLocationFeed getLatestLiveLocationFeedOfOneAthlete(int athleteId);

    public Collection<? extends LiveLocationFeed> getLiveLocationFeedOfAthleteByUsername(String username, int routeId);
}
